package com.easy.mapper;


import com.easy.bean.RemainTickets;
import com.easy.bean.TicketQueryParam;
import com.easy.bean.TrainTicketQueryVO;
import com.easy.bean.User;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 车票查询Mapper
 */
@Mapper
public interface TicketMapper {

    /**
     * 查询符合条件的车票
     * @param param 查询参数
     * @return 车票列表
     */
    List<TrainTicketQueryVO> selectTickets(@Param("param") TicketQueryParam param);



    List<RemainTickets> getTicketStatisticsByDate(@Param("date") LocalDate date) ;



    int pageCount(@Param("param") TicketQueryParam param) ;
    List<TrainTicketQueryVO> page(@Param("page") Page page, @Param("param") TicketQueryParam param) ;
}
